package top.yzlin.jqueryjx3strategystation.entity.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class BaseUser {
    @NotBlank
    @Pattern(regexp="^[a-zA-Z]\\w{4,16}$")
    private String userName;

    @NotBlank
    @Pattern(regexp="^\\w{4,10}$")
    private String password;
}
